package com.campus_activity.campus_activity.service;

import com.campus_activity.campus_activity.common.PageResult;
import com.campus_activity.campus_activity.domain.dto.BasePageQueryDTO;
import com.campus_activity.campus_activity.domain.dto.SchoolDTO;
import com.campus_activity.campus_activity.domain.dto.SchoolQueryDTO;
import com.campus_activity.campus_activity.domain.dto.SchoolUpdateDTO;
import com.campus_activity.campus_activity.domain.po.School;
import com.baomidou.mybatisplus.extension.service.IService;
import com.campus_activity.campus_activity.domain.vo.SchoolVo;

import java.util.List;

/**
* @author 73493
* @description 针对表【t_school(学校表)】的数据库操作Service
* @createDate 2023-04-24 17:07:07
*/
public interface SchoolService extends IService<School> {

    /**
     * 添加学校
     * @param schoolDto
     * @return
     */
    boolean addSchool(SchoolDTO schoolDto);


    /**
     * 查询学校
     * @param schoolQueryDTO
     * @return
     */
    PageResult<SchoolVo> listSchool(SchoolQueryDTO schoolQueryDTO);


    /**
     * 更新学校信息
     * @param schoolDto
     * @return
     */
    boolean updateSchool(SchoolUpdateDTO schoolDto);


    /**
     * 删除学校
     * @param schoolName
     * @return
     */
    boolean deleteSchool(String schoolName);


}
